<header class="header" id="header">
    <div class="h-container">
        <h1 class="nav-log">
            <a class="nav-log-text nav-color" href="/">禾水<span class="nav-log-description">-前端学习之路</span></a>
        </h1>
        <nav class="nav">
            <ul class="nav-list">
                <li><a class="nav-color active" href="/">首页</a></li>
                <li><a class="nav-color" href="/blog">BLOG</a></li>
                <li><a class="nav-color" href="/demo">DEMO</a></li>
                <% if(user) { %>
                <li><a class="nav-color" href="/post">发表</a></li>
                <li><a class="nav-color" href="/logout">登出</a></li>
                <% }else { %>
                <li><a class="nav-color" href="/login">登录</a></li>
                <li><a class="nav-color" href="/reg">注册</a></li>
                <% } %>
            </ul>
        </nav>
    </div>
</header>